package com.jsle.financial.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Workflow implements Serializable{
	private static final long serialVersionUID = -4387975421883319131L;
	private Integer id;
	/**单号*/
	private String formCode;
	private String workflowName;
	/***1：申请完成2：审核完成3：拍板完成*/
	private int workflowStatus;
	/**1:资金审批流程2:事件审批流程*/
	private int workflowType;
	private String companyCode;
	/**下一节点编号*/
	private Integer nodeCode;
	/**审批人员个数*/
	private int nodeOperators;
	/**已完成操作的审批人员个数**/
	private int nodeCompletedOperators;
	private Date createTime;
	private Date updateTime;
	/**流程唯一码**/
	private String workflowCode;
	
	private Integer applyUserId;
	private String applyUserName;
	/**金额[冗余字段]*/
	private BigDecimal amount;
	/**申请理由[冗余字段]**/
	private String workflowDescription;
	
	public Workflow(){
		//todo...
	}
	public Workflow(String workflowCode){
		this.workflowCode = workflowCode;
	}
	public Workflow(String formCode,String workflowName,int workflowStatus, int workflowType,
			String companyCode, Integer nodeCode, int nodeOperators,
			int nodeCompletedOperators,String workflowCode,Integer applyUserId,String applyUserName,BigDecimal amount,String workflowDescription) {
		this.formCode = formCode;
		this.workflowName = workflowName;
		this.workflowStatus = workflowStatus;
		this.workflowType = workflowType;
		this.companyCode = companyCode;
		this.nodeCode = nodeCode;
		this.nodeOperators = nodeOperators;
		this.nodeCompletedOperators = nodeCompletedOperators;
		this.workflowCode = workflowCode;
		this.applyUserId = applyUserId;
		this.applyUserName = applyUserName;
		this.amount = amount;
		this.workflowDescription = workflowDescription;
	}
	
	
	public Integer getApplyUserId() {
		return applyUserId;
	}
	public void setApplyUserId(Integer applyUserId) {
		this.applyUserId = applyUserId;
	}
	public String getApplyUserName() {
		return applyUserName;
	}
	public void setApplyUserName(String applyUserName) {
		this.applyUserName = applyUserName;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getWorkflowName() {
		return workflowName;
	}
	public void setWorkflowName(String workflowName) {
		this.workflowName = workflowName;
	}
	public int getWorkflowStatus() {
		return workflowStatus;
	}
	public void setWorkflowStatus(int workflowStatus) {
		this.workflowStatus = workflowStatus;
	}
	public int getWorkflowType() {
		return workflowType;
	}
	public void setWorkflowType(int workflowType) {
		this.workflowType = workflowType;
	}
	
	public String getCompanyCode() {
		return companyCode;
	}
	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}
	public Integer getNodeCode() {
		return nodeCode;
	}
	public void setNodeCode(Integer nodeCode) {
		this.nodeCode = nodeCode;
	}
	public int getNodeOperators() {
		return nodeOperators;
	}
	public void setNodeOperators(int nodeOperators) {
		this.nodeOperators = nodeOperators;
	}
	public int getNodeCompletedOperators() {
		return nodeCompletedOperators;
	}
	public void setNodeCompletedOperators(int nodeCompletedOperators) {
		this.nodeCompletedOperators = nodeCompletedOperators;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getWorkflowCode() {
		return workflowCode;
	}
	public void setWorkflowCode(String workflowCode) {
		this.workflowCode = workflowCode;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	public String getWorkflowDescription() {
		return workflowDescription;
	}
	public void setWorkflowDescription(String workflowDescription) {
		this.workflowDescription = workflowDescription;
	}
	public String getFormCode() {
		return formCode;
	}
	public void setFormCode(String formCode) {
		this.formCode = formCode;
	}
	
	
}
